package com.lovo.web.mapper;

import com.lovo.web.bean.EsBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface IEsMapper extends PagingAndSortingRepository<EsBean, String> {
      
      public EsBean findByNewsId(String newsId);

      /**
       * 关键字全文分页搜索
       * @param info 关键字
       * @param pageRequest 分页请求对象
       * @return 分页对象
       */
      Page<EsBean> findByInfo(String info,PageRequest pageRequest);

}
